<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.14"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>SPHinXsys: SPH::ComplexShape Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="logo.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">SPHinXsys
   &#160;<span id="projectnumber">alpha version</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.14 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespace_s_p_h.html">SPH</a></li><li class="navelem"><a class="el" href="class_s_p_h_1_1_complex_shape.html">ComplexShape</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pro-attribs">Protected Attributes</a> &#124;
<a href="class_s_p_h_1_1_complex_shape-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">SPH::ComplexShape Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>gives the final geomtrical definition of the <a class="el" href="class_s_p_h_1_1_s_p_h_body.html" title="SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...">SPHBody</a>  
 <a href="class_s_p_h_1_1_complex_shape.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="for__2_d__build_2geometry__and__topology_2geometry_8h_source.html">geometry.h</a>&gt;</code></p>

<p>Inherits <a class="el" href="class_s_p_h_1_1_shape.html">SPH::Shape</a>, and <a class="el" href="class_s_p_h_1_1_shape.html">SPH::Shape</a>.</p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:af9172c77de9ac21119b3d1db17cae6fe"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_complex_shape.html#af9172c77de9ac21119b3d1db17cae6fe">ComplexShape</a> ()</td></tr>
<tr class="separator:af9172c77de9ac21119b3d1db17cae6fe"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad91fac208ba130af8006aa8e79d1c389"><td class="memItemLeft" align="right" valign="top"><a id="ad91fac208ba130af8006aa8e79d1c389"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ComplexShape</b> (string complex_shape_name)</td></tr>
<tr class="separator:ad91fac208ba130af8006aa8e79d1c389"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a39a677fe8a59d24dbffbc00851b10777"><td class="memItemLeft" align="right" valign="top"><a id="a39a677fe8a59d24dbffbc00851b10777"></a>
virtual Vec2d&#160;</td><td class="memItemRight" valign="bottom"><b>findClosestPoint</b> (Vec2d input_pnt) override</td></tr>
<tr class="separator:a39a677fe8a59d24dbffbc00851b10777"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7d3b63397da388ac8c9128e5b3c997a8"><td class="memItemLeft" align="right" valign="top"><a id="a7d3b63397da388ac8c9128e5b3c997a8"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>findBounds</b> (Vec2d &amp;lower_bound, Vec2d &amp;upper_bound) override</td></tr>
<tr class="separator:a7d3b63397da388ac8c9128e5b3c997a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3a024625f41798fe85b3e13fcec537c7"><td class="memItemLeft" align="right" valign="top"><a id="a3a024625f41798fe85b3e13fcec537c7"></a>
<a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>checkContain</b> (Vec2d pnt, <a class="el" href="classbool.html">bool</a> BOUNDARY_INCLUDED=true)</td></tr>
<tr class="separator:a3a024625f41798fe85b3e13fcec537c7"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a37f5876bc47a7dfd1b1a0275b2815bab"><td class="memItemLeft" align="right" valign="top"><a id="a37f5876bc47a7dfd1b1a0275b2815bab"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addAMultiPolygon</b> (<a class="el" href="class_s_p_h_1_1_multi_polygon.html">MultiPolygon</a> &amp;multi_polygon, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:a37f5876bc47a7dfd1b1a0275b2815bab"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aee8d4423d729d3983010af27e477fce8"><td class="memItemLeft" align="right" valign="top"><a id="aee8d4423d729d3983010af27e477fce8"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addABoostMultiPoly</b> (boost_multi_poly &amp;boost_multi_poly, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:aee8d4423d729d3983010af27e477fce8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afa3f6e3cf7eaf7f0d85734b93f419230"><td class="memItemLeft" align="right" valign="top"><a id="afa3f6e3cf7eaf7f0d85734b93f419230"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addAPolygon</b> (std::vector&lt; Point &gt; &amp;points, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:afa3f6e3cf7eaf7f0d85734b93f419230"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a58ffe6e7efae032a95bacc7bcea47d5b"><td class="memItemLeft" align="right" valign="top"><a id="a58ffe6e7efae032a95bacc7bcea47d5b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addACircle</b> (Vec2d center, Real radius, <a class="el" href="classint.html">int</a> resolution, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:a58ffe6e7efae032a95bacc7bcea47d5b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad91fac208ba130af8006aa8e79d1c389"><td class="memItemLeft" align="right" valign="top"><a id="ad91fac208ba130af8006aa8e79d1c389"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>ComplexShape</b> (string complex_shape_name)</td></tr>
<tr class="separator:ad91fac208ba130af8006aa8e79d1c389"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4e0c98636485a7776be475f439d43849"><td class="memItemLeft" align="right" valign="top"><a id="a4e0c98636485a7776be475f439d43849"></a>
<a class="el" href="classbool.html">bool</a>&#160;</td><td class="memItemRight" valign="bottom"><b>checkContain</b> (Vec3d pnt, <a class="el" href="classbool.html">bool</a> BOUNDARY_INCLUDED=true)</td></tr>
<tr class="separator:a4e0c98636485a7776be475f439d43849"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a23230fb0ad5bc00dd3ed2e8f9b390280"><td class="memItemLeft" align="right" valign="top"><a id="a23230fb0ad5bc00dd3ed2e8f9b390280"></a>
virtual Vec3d&#160;</td><td class="memItemRight" valign="bottom"><b>findClosestPoint</b> (Vec3d input_pnt) override</td></tr>
<tr class="separator:a23230fb0ad5bc00dd3ed2e8f9b390280"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5e21099a929357b255d8d8052d0aa896"><td class="memItemLeft" align="right" valign="top"><a id="a5e21099a929357b255d8d8052d0aa896"></a>
virtual void&#160;</td><td class="memItemRight" valign="bottom"><b>findBounds</b> (Vec3d &amp;lower_bound, Vec3d &amp;upper_bound) override</td></tr>
<tr class="separator:a5e21099a929357b255d8d8052d0aa896"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aae5b773c5416114a8b8391b9d59a4554"><td class="memItemLeft" align="right" valign="top"><a id="aae5b773c5416114a8b8391b9d59a4554"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addTriangleMeshShape</b> (<a class="el" href="class_s_p_h_1_1_triangle_mesh_shape.html">TriangleMeshShape</a> *triangle_mesh_shape, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:aae5b773c5416114a8b8391b9d59a4554"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a779623d3b105b8f079bcc8e9a4b6ed3b"><td class="memItemLeft" align="right" valign="top"><a id="a779623d3b105b8f079bcc8e9a4b6ed3b"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addComplexShape</b> (<a class="el" href="class_s_p_h_1_1_complex_shape.html">ComplexShape</a> *complex_shape, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:a779623d3b105b8f079bcc8e9a4b6ed3b"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a30846128bdd1f5b423222d55ce51c0b1"><td class="memItemLeft" align="right" valign="top"><a id="a30846128bdd1f5b423222d55ce51c0b1"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addBrick</b> (Vec3d halfsize, <a class="el" href="classint.html">int</a> resol, Vec3d translation, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:a30846128bdd1f5b423222d55ce51c0b1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac43b590233f404407ed9d391c7e890dc"><td class="memItemLeft" align="right" valign="top"><a id="ac43b590233f404407ed9d391c7e890dc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addSphere</b> (Real radius, <a class="el" href="classint.html">int</a> resol, Vec3d translation, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:ac43b590233f404407ed9d391c7e890dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aba981108a4979311182f3104030fc3ea"><td class="memItemLeft" align="right" valign="top"><a id="aba981108a4979311182f3104030fc3ea"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addCylinder</b> (SimTK::UnitVec3 axis, Real radius, Real halflength, <a class="el" href="classint.html">int</a> resol, Vec3d translation, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:aba981108a4979311182f3104030fc3ea"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac574eb21d097cfaf75316ecabc6026dc"><td class="memItemLeft" align="right" valign="top"><a id="ac574eb21d097cfaf75316ecabc6026dc"></a>
void&#160;</td><td class="memItemRight" valign="bottom"><b>addFormSTLFile</b> (string file_path_name, Vec3d translation, Real scale_factor, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> op)</td></tr>
<tr class="separator:ac574eb21d097cfaf75316ecabc6026dc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_methods_class_s_p_h_1_1_shape"><td colspan="2" onclick="javascript:toggleInherit('pub_methods_class_s_p_h_1_1_shape')"><img src="closed.png" alt="-"/>&#160;Public Member Functions inherited from <a class="el" href="class_s_p_h_1_1_shape.html">SPH::Shape</a></td></tr>
<tr class="memitem:a4476c696cd5ace075ab6c9dcd37a86c4 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a4476c696cd5ace075ab6c9dcd37a86c4"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>Shape</b> (string shape_name)</td></tr>
<tr class="separator:a4476c696cd5ace075ab6c9dcd37a86c4 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8345e4a44bdb995a1bd5f956f0b33d41 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="a8345e4a44bdb995a1bd5f956f0b33d41"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>getName</b> ()</td></tr>
<tr class="separator:a8345e4a44bdb995a1bd5f956f0b33d41 inherit pub_methods_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pro-attribs"></a>
Protected Attributes</h2></td></tr>
<tr class="memitem:ae315efd69b440d4633547687a6a8a78e"><td class="memItemLeft" align="right" valign="top"><a id="ae315efd69b440d4633547687a6a8a78e"></a>
<a class="el" href="class_s_p_h_1_1_multi_polygon.html">MultiPolygon</a>&#160;</td><td class="memItemRight" valign="bottom"><b>multi_ploygen_</b></td></tr>
<tr class="separator:ae315efd69b440d4633547687a6a8a78e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a657b6cdcf51d09ce26105192142ab72c"><td class="memItemLeft" align="right" valign="top">std::vector&lt; std::pair&lt; <a class="el" href="class_s_p_h_1_1_triangle_mesh_shape.html">TriangleMeshShape</a> *, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a> &gt; &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="class_s_p_h_1_1_complex_shape.html#a657b6cdcf51d09ce26105192142ab72c">triangle_mesh_shapes_</a></td></tr>
<tr class="separator:a657b6cdcf51d09ce26105192142ab72c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2c7c4f2d853bd13063a40c1d0579376e"><td class="memItemLeft" align="right" valign="top"><a id="a2c7c4f2d853bd13063a40c1d0579376e"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>output_folder_</b></td></tr>
<tr class="separator:a2c7c4f2d853bd13063a40c1d0579376e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pro_attribs_class_s_p_h_1_1_shape"><td colspan="2" onclick="javascript:toggleInherit('pro_attribs_class_s_p_h_1_1_shape')"><img src="closed.png" alt="-"/>&#160;Protected Attributes inherited from <a class="el" href="class_s_p_h_1_1_shape.html">SPH::Shape</a></td></tr>
<tr class="memitem:ae2f65ae337bc8dd13efb2df76ab491a3 inherit pro_attribs_class_s_p_h_1_1_shape"><td class="memItemLeft" align="right" valign="top"><a id="ae2f65ae337bc8dd13efb2df76ab491a3"></a>
string&#160;</td><td class="memItemRight" valign="bottom"><b>name_</b></td></tr>
<tr class="separator:ae2f65ae337bc8dd13efb2df76ab491a3 inherit pro_attribs_class_s_p_h_1_1_shape"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>gives the final geomtrical definition of the <a class="el" href="class_s_p_h_1_1_s_p_h_body.html" title="SPHBody is a base body with basic data and functions. Its derived class can be a real fluid body...">SPHBody</a> </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="af9172c77de9ac21119b3d1db17cae6fe"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af9172c77de9ac21119b3d1db17cae6fe">&#9670;&nbsp;</a></span>ComplexShape()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">SPH::ComplexShape::ComplexShape </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Default constructor. </p>

</div>
</div>
<h2 class="groupheader">Member Data Documentation</h2>
<a id="a657b6cdcf51d09ce26105192142ab72c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a657b6cdcf51d09ce26105192142ab72c">&#9670;&nbsp;</a></span>triangle_mesh_shapes_</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::vector&lt;std::pair&lt;<a class="el" href="class_s_p_h_1_1_triangle_mesh_shape.html">TriangleMeshShape</a>*, <a class="el" href="class_shape_boolean_ops.html">ShapeBooleanOps</a>&gt; &gt; SPH::ComplexShape::triangle_mesh_shapes_</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">protected</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>shape container&lt;pointer to geomtry, operation&gt; </p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li>SPHINXsys/src/for_2D_build/geometry_and_topology/<a class="el" href="for__2_d__build_2geometry__and__topology_2geometry_8h_source.html">geometry.h</a></li>
<li>SPHINXsys/src/for_2D_build/geometry_and_topology/geometry.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.14
</small></address>
</body>
</html>
